<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <title>消息中心原型</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family:
          -apple-system,
          BlinkMacSystemFont,
          'Helvetica Neue',
          Helvetica,
          Segoe UI,
          Arial,
          Roboto,
          'PingFang SC',
          'miui',
          'Hiragino Sans GB',
          'Microsoft Yahei',
          sans-serif;
        background-color: #f7f8fa;
        color: #323233;
        line-height: 1.5;
      }

      .app-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .app-header h1 {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
      }

      .header-actions {
        display: flex;
        gap: 15px;
      }

      .header-actions button {
        background: none;
        border: none;
        position: relative;
      }

      .message-page {
        padding: 15px;
        padding-bottom: 70px;
      }

      .message-tabs {
        display: flex;
        background: white;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .tab-button {
        flex: 1;
        padding: 12px;
        text-align: center;
        background: none;
        border: none;
        font-size: 14px;
        color: #666;
        position: relative;
      }

      .tab-button.active {
        color: #1989fa;
        font-weight: bold;
      }

      .tab-button.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: #1989fa;
        border-radius: 3px;
      }

      .message-list {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        overflow: hidden;
      }

      .message-item {
        display: flex;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
      }

      .message-item:last-child {
        border-bottom: none;
      }

      .message-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        font-size: 18px;
        color: white;
      }

      .message-icon.system {
        background: #1989fa;
      }

      .message-icon.user {
        background: #52c41a;
      }

      .message-content {
        flex: 1;
      }

      .message-title {
        font-size: 15px;
        margin-bottom: 5px;
        display: flex;
        justify-content: space-between;
      }

      .message-title .title {
        font-weight: bold;
      }

      .message-title .time {
        font-size: 12px;
        color: #999;
      }

      .message-body {
        font-size: 14px;
        color: #666;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
      }

      .message-footer {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
      }

      .message-footer .category {
        color: #1989fa;
      }

      .message-footer .status {
        color: #999;
      }

      .unread-badge {
        position: absolute;
        top: 15px;
        left: 30px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ff4d4f;
      }

      .empty-state {
        padding: 40px 0;
        text-align: center;
        color: #999;
      }

      .empty-icon {
        font-size: 48px;
        margin-bottom: 10px;
        color: #ddd;
      }

      .empty-text {
        font-size: 14px;
      }

      .fab {
        position: fixed;
        right: 20px;
        bottom: 70px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #1989fa;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border: none;
      }

      .tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: white;
        display: flex;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
      }

      .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 12px;
      }

      .tab-item.active {
        color: #1989fa;
      }

      .tab-icon {
        font-size: 20px;
        margin-bottom: 3px;
      }
    </style>
  </head>
  <body>
    <div class="app-header">
      <h1>消息中心</h1>
      <div class="header-actions">
        <button>
          <span>🔍</span>
        </button>
      </div>
    </div>

    <div class="message-page">
      <div class="message-tabs">
        <button class="tab-button active">系统通知</button>
        <button class="tab-button">用户消息</button>
      </div>

      <div class="message-list">
        <div class="message-item">
          <div class="message-icon system">S</div>
          <div class="unread-badge"></div>
          <div class="message-content">
            <div class="message-title">
              <span class="title">系统维护通知</span>
              <span class="time">今天 10:30</span>
            </div>
            <div class="message-body">
              尊敬的用户，我们将于2023年7月15日凌晨2:00-4:00进行系统维护，届时系统将暂停服务，请提前做好相关工作安排。
            </div>
            <div class="message-footer">
              <span class="category">系统公告</span>
              <span class="status">未读</span>
            </div>
          </div>
        </div>

        <div class="message-item">
          <div class="message-icon system">S</div>
          <div class="message-content">
            <div class="message-title">
              <span class="title">合同到期提醒</span>
              <span class="time">昨天 14:15</span>
            </div>
            <div class="message-body">
              您与广州某科技有限公司的服务合同将于30天后到期，请及时联系客户续约。
            </div>
            <div class="message-footer">
              <span class="category">合同提醒</span>
              <span class="status">已读</span>
            </div>
          </div>
        </div>

        <div class="message-item">
          <div class="message-icon system">S</div>
          <div class="message-content">
            <div class="message-title">
              <span class="title">新功能上线通知</span>
              <span class="time">07-10 09:45</span>
            </div>
            <div class="message-body">
              我们的移动端应用新增了数据统计功能，现在您可以随时查看业务数据和图表分析了。
            </div>
            <div class="message-footer">
              <span class="category">功能更新</span>
              <span class="status">已读</span>
            </div>
          </div>
        </div>

        <div class="message-item">
          <div class="message-icon system">S</div>
          <div class="message-content">
            <div class="message-title">
              <span class="title">账号安全提醒</span>
              <span class="time">07-05 16:20</span>
            </div>
            <div class="message-body">
              您的账号于今日在新设备上登录，如非本人操作，请立即修改密码并联系管理员。
            </div>
            <div class="message-footer">
              <span class="category">安全提醒</span>
              <span class="status">已读</span>
            </div>
          </div>
        </div>
      </div>

      <button class="fab">+</button>
    </div>

    <div class="tab-bar">
      <div class="tab-item">
        <div class="tab-icon">🏠</div>
        <div>首页</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">👥</div>
        <div>客户</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">📄</div>
        <div>合同</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">⚖️</div>
        <div>案件</div>
      </div>
      <div class="tab-item active">
        <div class="tab-icon">💬</div>
        <div>消息</div>
      </div>
    </div>
  </body>
</html>
